package com.library.entity;

import java.time.LocalDate;

/**
 * 图书信息
 */
public class Book {
    private String ISBN; //ISBN号
    private String bname; //书名
    private String author; //作者
    private String publisher; //出版社
    private String introduction; //简介
    private java.sql.Date pubDate; //出版时间
    private String clcNum; //中图分类号
    private Integer bookStatus; //图书状态 0下架 1上架
    private Integer id; //id

    public Book() {
    }

    public Book(String ISBN, String bname, String author, String publisher, String introduction, java.sql.Date pubDate, String clcNum, Integer bookStatus, Integer id) {
        this.ISBN = ISBN;
        this.bname = bname;
        this.author = author;
        this.publisher = publisher;
        this.introduction = introduction;
        this.pubDate = pubDate;
        this.clcNum = clcNum;
        this.bookStatus = bookStatus;
        this.id = id;
    }

    public String getISBN() {
        return ISBN;
    }

    public void setISBN(String ISBN) {
        this.ISBN = ISBN;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public java.sql.Date getPubDate() {
        return pubDate;
    }

    public void setPubDate(java.sql.Date pubDate) {
        this.pubDate = pubDate;
    }

    public String getClcNum() {
        return clcNum;
    }

    public void setClcNum(String clcNum) {
        this.clcNum = clcNum;
    }

    public Integer getBookStatus() {
        return bookStatus;
    }

    public void setBookStatus(Integer bookStatus) {
        this.bookStatus = bookStatus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Book{" +
                "ISBN='" + ISBN + '\'' +
                ", bname='" + bname + '\'' +
                ", author='" + author + '\'' +
                ", publisher='" + publisher + '\'' +
                ", introduction='" + introduction + '\'' +
                ", pubDate=" + pubDate +
                ", clcNum='" + clcNum + '\'' +
                ", bookStatus=" + bookStatus +
                ", id=" + id +
                '}';
    }
}
